<table>
	<tr><th>User Name</th><th>Admin</th><th>Power User</th><th>Guest</th></tr>
	<%for user in @users do %>
		<tr id="<%= "user-#{user.id}" %>">
			<td><%= user.name %></td>
			<td>
					<%if user.admin?%>
						Yes
					<% else %>
						<% if current_user != user && current_user.admin?%>
							<%= link_to_set_role_of_user(:role_id => Role.admin.id, :id => user ) %>
						<% end %>
						
					<% end %>
			</td>
			<td>
					<%if user.power_user?%>
						Yes
					<% else %>
						<% if current_user != user && current_user.admin?%>
							<%= link_to_set_role_of_user(:role_id => Role.power_user.id, :id => user ) %>
						<% end %>
					<% end %>
			</td>
			<td>
					<%if user.guest?%>
						Yes
					<% else %>
						<% if current_user != user && current_user.admin?%>
							<%= link_to_set_role_of_user(:role_id => Role.guest.id, :id => user ) %>
						<% end %>
					<% end %>
			</td>
		</tr>
	<%end%>
</table>
<%= will_paginate @users %>
